using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Sample.Messages;
using SimpleServiceBus.Bus.MessageManagement.MessageHandling;

namespace SampleConsumer.Handlers {

    public class LogMessageHandler:  IMessageHandler<LogMessage> {

        //-----< Fields >-----
        //----------------------------------------------------------------------------------        


        //-----< Constructors >-----
        //----------------------------------------------------------------------------------        


        //-----< Public and protected properties >-----
        //----------------------------------------------------------------------------------        


        //-----< Public and protected methods >-----
        //----------------------------------------------------------------------------------        

        public void Handle(LogMessage message, SimpleServiceBus.Bus.Pipeline.IMessageContext context) {
            Logger.Log("LOG: " + message.Text);
        }

        //-----< Events >-----
        //----------------------------------------------------------------------------------        


        //-----< Internal members >-----
        //----------------------------------------------------------------------------------        


        //-----< Private members >-----
        //----------------------------------------------------------------------------------        


        //-----< All nested types >-----
        //----------------------------------------------------------------------------------        


        //-----< All explicit interface implementations >-----
        //----------------------------------------------------------------------------------        


    }
}

